package com.itheima.demo;

import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;

public class Demo04 {
    public static void main(String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        System.out.println("用户名：");
        String name = sc.nextLine();
        System.out.println("密码");
        String password = sc.nextLine();

        FileWriter fw = new FileWriter("day12_IO\\b.txt");
        fw.write(name+"\r\n");
        fw.write(password);

        fw.close();
    }
}
